<html> <head> <script type="text/javascript"> function message() {alert("This alert box was called with the onload event")} </[...]> </head> <body onload="message()"> </body></html>